package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Time;
import java.util.List;


/**
 * The persistent class for the kq_banci database table.
 * 
 */
@Entity
@Table(name="kq_banci")
@NamedQuery(name="KqBanci.findAll", query="SELECT k FROM KqBanci k")
public class KqBanci implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="b_id")
	private int bId;

	@Column(name="b_dao")
	private Time bDao;

	@Column(name="b_name")
	private String bName;

	@Column(name="b_qi")
	private int bQi;

	@Column(name="b_tui")
	private Time bTui;

	//bi-directional many-to-one association to KqAttendance
	@OneToMany(mappedBy="kqBanci")
	private List<KqAttendance> kqAttendances;

	public KqBanci() {
	}

	public int getBId() {
		return this.bId;
	}

	public void setBId(int bId) {
		this.bId = bId;
	}

	public Time getBDao() {
		return this.bDao;
	}

	public void setBDao(Time bDao) {
		this.bDao = bDao;
	}

	public String getBName() {
		return this.bName;
	}

	public void setBName(String bName) {
		this.bName = bName;
	}

	public int getBQi() {
		return this.bQi;
	}

	public void setBQi(int bQi) {
		this.bQi = bQi;
	}

	public Time getBTui() {
		return this.bTui;
	}

	public void setBTui(Time bTui) {
		this.bTui = bTui;
	}

	public List<KqAttendance> getKqAttendances() {
		return this.kqAttendances;
	}

	public void setKqAttendances(List<KqAttendance> kqAttendances) {
		this.kqAttendances = kqAttendances;
	}

	public KqAttendance addKqAttendance(KqAttendance kqAttendance) {
		getKqAttendances().add(kqAttendance);
		kqAttendance.setKqBanci(this);

		return kqAttendance;
	}

	public KqAttendance removeKqAttendance(KqAttendance kqAttendance) {
		getKqAttendances().remove(kqAttendance);
		kqAttendance.setKqBanci(null);

		return kqAttendance;
	}

}